import request from '@/utils/request'

// 查询龙头小弟库列表
export function listFootman(query) {
  return request({
    url: '/stock/footman/list',
    method: 'get',
    params: query
  })
}

// 查询龙头小弟库详细
export function getFootman(recordId) {
  return request({
    url: '/stock/footman/' + recordId,
    method: 'get'
  })
}

// 新增龙头小弟库
export function addFootman(data) {
  return request({
    url: '/stock/footman',
    method: 'post',
    data: data
  })
}

// 修改龙头小弟库
export function updateFootman(data) {
  return request({
    url: '/stock/footman',
    method: 'put',
    data: data
  })
}

// 删除龙头小弟库
export function delFootman(recordId) {
  return request({
    url: '/stock/footman/' + recordId,
    method: 'delete'
  })
}
